pull: Further cleanup signapi verification
authorColin Walters <walters@verbum.org>
Tue, 12 May 2020 01:26:00 +0000 (01:26 +0000)
committerColin Walters <walters@verbum.org>
Tue, 12 May 2020 15:20:26 +0000 (15:20 +0000)
commit9509a4bc948672b6bdf3ccdd0ea882a141c78974
treea43d2b40749ecee91b1ce60ff38f114aaec4f914
parent4293c36188143cfbe9d7932d69be0a37da3ec361
pull: Further cleanup signapi verification

Previously in the pull code, every time we went to verify
a commit we would re-initialize an `OstreeSign` instance
of each time, re-parse the remote configuration
and re-load its public keys etc.

In most cases this doesn't matter really because we're
pulling one commit, but if e.g. pulling a commit with
history would get a bit silly.

This changes things so that the pull code initializes the
verifiers once, and reuses them thereafter.

This is continuing towards changing the code to support
explicitly configured verifiers, xref
https://github.com/ostreedev/ostree/issues/2080
src/libostree/ostree-repo-pull-private.h
src/libostree/ostree-repo-pull-verify.c
src/libostree/ostree-repo-pull.c